package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the pur_receiv_details database table.
 * 
 */
@Entity
@Table(name="pur_receiv_details")
@NamedQuery(name="PurReceivDetail.findAll", query="SELECT p FROM PurReceivDetail p")
public class PurReceivDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="receivdetail_id")
	private String receivdetailId;

	@Column(name="contax_money")
	private BigDecimal contaxMoney;

	@Column(name="contax_price")
	private BigDecimal contaxPrice;

	private BigDecimal money;

	private BigDecimal price;

	@Column(name="pro_id")
	private String proId;

	@Column(name="pur_quantity")
	private int purQuantity;

	@Column(name="putstorage_quantity")
	private int putstorageQuantity;

	@Column(name="qualifi_quantity")
	private int qualifiQuantity;

	@Temporal(TemporalType.DATE)
	@Column(name="receiv_date")
	private Date receivDate;

	@Column(name="receiv_quantity")
	private int receivQuantity;

	private String remarks;

	@Column(name="return_quantity")
	private int returnQuantity;

	private BigDecimal tax;

	@Column(name="tax_money")
	private BigDecimal taxMoney;

	@Column(name="unqualifi_quantity")
	private int unqualifiQuantity;

	//bi-directional many-to-one association to PurReceived
	@ManyToOne
	@JoinColumn(name="received_id")
	private PurReceived purReceived;

	public PurReceivDetail() {
	}

	public String getReceivdetailId() {
		return this.receivdetailId;
	}

	public void setReceivdetailId(String receivdetailId) {
		this.receivdetailId = receivdetailId;
	}

	public BigDecimal getContaxMoney() {
		return this.contaxMoney;
	}

	public void setContaxMoney(BigDecimal contaxMoney) {
		this.contaxMoney = contaxMoney;
	}

	public BigDecimal getContaxPrice() {
		return this.contaxPrice;
	}

	public void setContaxPrice(BigDecimal contaxPrice) {
		this.contaxPrice = contaxPrice;
	}

	public BigDecimal getMoney() {
		return this.money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getProId() {
		return this.proId;
	}

	public void setProId(String proId) {
		this.proId = proId;
	}

	public int getPurQuantity() {
		return this.purQuantity;
	}

	public void setPurQuantity(int purQuantity) {
		this.purQuantity = purQuantity;
	}

	public int getPutstorageQuantity() {
		return this.putstorageQuantity;
	}

	public void setPutstorageQuantity(int putstorageQuantity) {
		this.putstorageQuantity = putstorageQuantity;
	}

	public int getQualifiQuantity() {
		return this.qualifiQuantity;
	}

	public void setQualifiQuantity(int qualifiQuantity) {
		this.qualifiQuantity = qualifiQuantity;
	}

	public Date getReceivDate() {
		return this.receivDate;
	}

	public void setReceivDate(Date receivDate) {
		this.receivDate = receivDate;
	}

	public int getReceivQuantity() {
		return this.receivQuantity;
	}

	public void setReceivQuantity(int receivQuantity) {
		this.receivQuantity = receivQuantity;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public int getReturnQuantity() {
		return this.returnQuantity;
	}

	public void setReturnQuantity(int returnQuantity) {
		this.returnQuantity = returnQuantity;
	}

	public BigDecimal getTax() {
		return this.tax;
	}

	public void setTax(BigDecimal tax) {
		this.tax = tax;
	}

	public BigDecimal getTaxMoney() {
		return this.taxMoney;
	}

	public void setTaxMoney(BigDecimal taxMoney) {
		this.taxMoney = taxMoney;
	}

	public int getUnqualifiQuantity() {
		return this.unqualifiQuantity;
	}

	public void setUnqualifiQuantity(int unqualifiQuantity) {
		this.unqualifiQuantity = unqualifiQuantity;
	}

	public PurReceived getPurReceived() {
		return this.purReceived;
	}

	public void setPurReceived(PurReceived purReceived) {
		this.purReceived = purReceived;
	}

}